package com.wgchao.amc.repository.base;

import com.wgchao.amc.entity.base.SysBaseUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @作者  wgchao
 * @时间 2019-10-20 
 * @用途  
 */
@Repository
public interface SysBaseUserRepository  extends JpaRepository<SysBaseUser, Long>, JpaSpecificationExecutor<SysBaseUser> {
    SysBaseUser findFirstByUname(String uname);

    List<SysBaseUser> findAllByIdIn(List<Long> ids);

    List<SysBaseUser> findAllByAgencyCodeAndDelIsFalseAndCancelIsFalse(String agencyCode);
}
